<?php
namespace app\api\controller;

use app\common\model\User;
use think\Controller;

Class Common extends Controller{
	public function _initialize()
	{
		if(input('appid') && input('appkey')){

			
		}else{
			exit(json_encode(['code'=>40000,'msg'=>'appid and appkey invild']));
		}
	}

	public function no($code,$msg)
	{
		exit(json_encode(['code'=>$code,'msg'=>$msg]));
	}

	public function success($res)
	{
		exit(json_encode(['code'=>0,'msg'=>'success','data'=>$res]));
	}
}
